<?php /* Smarty version 2.6.18, created on 2010-09-01 10:24:50
         compiled from alumni/profile/edit_personal.tpl */ ?>
<div id="solvay_content2010">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/left_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  
  <div id="content2010_right">
    <div class="ctn_contentright2010">
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/top_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <div class="content_tab">
            <div class="title_contenttab">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
	                <td align="left">Personal info</td>
                </tr>
              </table>
           </div>
            <div class="ctn_texttab">
            	<form name="frmEditPersonal" id="frmEditPersonal" action="" method="post" onSubmit="return checkEditPersonal(this)" target="ifrm_upload">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
              	<tr>
                  <td colspan="2" class="text_13" style="color:#FF0000; text-align:center" id="id_alert_msg"></td>
                 </tr>
                <tr>
                  <td width="190" class="text_13">Full name <span style="color:#FF0000">*</span></td>
                    <td class="text_13"><input type="text" name="full_name" id="full_name" class="input2010_300" value="<?php echo $this->_tpl_vars['arrInfoMember']['full_name']; ?>
"  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Gender</td>
                    <td class="text_13_bg">
                      <select name="gender" id="gender" class="select2010_300">
                        <option value="0"<?php if ($this->_tpl_vars['arrInfoMember']['gender'] == 0): ?> selected="selected"<?php endif; ?>>Male</option>
                        <option value="1"<?php if ($this->_tpl_vars['arrInfoMember']['gender'] == 1): ?> selected="selected"<?php endif; ?>>Female</option>
                      </select>
                    </td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Date of birth</td>
                    <td class="text_13">
                      <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                              <td align="left">
                              <select name="day_dob" id="day_dob" class="select2010_95">
                                <option value=""> -- Day -- </option>
                                <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=32) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                                  <option<?php if ($this->_tpl_vars['arrInfoMember']['day_dob'] == $this->_sections['foo']['index']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_sections['foo']['index']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_sections['foo']['index']; ?>
</option>
                                <?php endfor; endif; ?>  
                              </select>
                        		</td>
                        <td width="5"></td>
                              <td align="left">
                        				<select name="month_dob" id="month_dob" class="select2010_95">
                                  <option value=""> -- Month -- </option>
                                  <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=13) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                                    <option<?php if ($this->_tpl_vars['arrInfoMember']['month_dob'] == $this->_sections['foo']['index']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_sections['foo']['index']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_sections['foo']['index']; ?>
</option>
                                  <?php endfor; endif; ?>  
                                </select>
                        			</td>
                         <td width="5"></td>
                        <td align="left">
                        		<select name="year_dob" id="year_dob" class="select2010_95">
                              <option value=""> -- Year -- </option>
                              <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1940;
$this->_sections['foo']['loop'] = is_array($_loop=2010) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                                <option<?php if ($this->_tpl_vars['arrInfoMember']['year_dob'] == $this->_sections['foo']['index']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_sections['foo']['index']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_sections['foo']['index']; ?>
</option>
                              <?php endfor; endif; ?>  
                            </select>
                       		</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Place of birth</td>
                    <td class="text_13_bg">
                    	<select name="pob" id="pob" class="select2010_300">
                      	<option value=""> -- City/Province -- </option> 
                        <?php $_from = $this->_tpl_vars['arrListLocation']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameLoaction'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameLoaction']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyLocation'] => $this->_tpl_vars['itemLocation']):
        $this->_foreach['nameLoaction']['iteration']++;
?>
                        	<option<?php if ($this->_tpl_vars['arrInfoMember']['pob'] == $this->_tpl_vars['itemLocation']['id']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_tpl_vars['itemLocation']['id']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['itemLocation']['location_name']; ?>
</option>
                        <?php endforeach; endif; unset($_from); ?>
                      </select>
                     </td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Intake</td>
                    <td class="text_13">
                    	<select name="intake_id" id="intake_id" class="select2010_300">
                        <option value=""> -- Choose -- </option>
                        <?php $_from = $this->_tpl_vars['arrIntake']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameIntake'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameIntake']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyIntake'] => $this->_tpl_vars['itemIntake']):
        $this->_foreach['nameIntake']['iteration']++;
?>
                          <option<?php if ($this->_tpl_vars['arrInfoMember']['intake_id'] == $this->_tpl_vars['itemIntake']['id']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_tpl_vars['itemIntake']['id']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['itemIntake']['intake_name']; ?>
</option>
                        <?php endforeach; endif; unset($_from); ?>
                      </select>
                    </td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Company (ToS)</td>
                    <td class="text_13_bg"><input type="text" name="company_tos" id="company_tos" class="input2010_300" value="<?php echo $this->_tpl_vars['arrInfoMember']['company_tos']; ?>
" /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Position (ToS)</td>
                    <td class="text_13"><input type="text" name="position_tos" id="" class="input2010_300" value="<?php echo $this->_tpl_vars['arrInfoMember']['position_tos']; ?>
"  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                      <input type="submit" name="btnSubmit" id="btnSubmit" class="btn_login2010" value="Save" />
                    </td>
                </tr>
                 <tr>
                  <td colspan="2" height="20"></td>
                </tr>
              </table>
              </form>                
                <div class="note_bottom">* ToS : Time of study</div>
            </div>
            
        </div>
  		</div>
   	</div>
</div>
<script type="text/javascript">
	function checkEditPersonal(p_objForm)
	{
		if ( trim(p_objForm.full_name.value) == "" )
		{
			innerHTML("id_alert_msg","Please input your full name!");
			p_objForm.full_name.focus();
			return false;
		}
		
		var frm = xoad.html.exportForm('frmEditPersonal');
		callAJAX('xoad_handler', 'changepersonal', $H({form: frm}), checkEditPersonal_callBack);
		disableHandleForm(document.getElementById("frmEditPersonal"), true);
		return false;
	}
	var checkEditPersonal_callBack = function checkEditPersonal_callBack(results)
	{
		disableHandleForm(document.getElementById("frmEditPersonal"), false);
		if ( results == "SUCCESS" )
		{
			innerHTML("id_alert_msg", "Action successfully!");
		}
		else
		{
			innerHTML("id_alert_msg","Action unsuccessfully!");
		}
	}
</script>